package com.updesignsz.commom.util;


/**
 * 页面信息返回
 * 
 */
public class ResultVo {
	private Integer code; // 状态 true为成功
	private String message; // 弹出消息
	private Object data;
	private Integer totalCount;

	public ResultVo() {
		this.code = 200;
		this.message = "成功";
		this.data = null;
	}

	public ResultVo(Integer code, String msg) {
		this.code = code;
		this.message = msg;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String toJsonMsg() {
		return JsonUtil.toJson(this);
	}

	public String toJsonsMsg() {
		return JsonUtils.toJson(this);
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getData() {
		return data;
	}

	public void setResultVo(Integer result, String msg) {
		setCode(result);
		setMessage(msg);
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
}
